<?php

/**
 * Created by PhpStorm.
 * Author: netman
 * Time: 2023/10/18 09:15
 * Desc:全局搜索参数验证
 */
class Request_Api_V2_Search extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);
    }


    public function search_config()
    {
        return $this;
    }

    public function search_more()
    {
        $this->rules = [
            ['page', ['not_empty','digit',$this->rule_min(1)]],
            ['pagesize', ['not_empty','digit',$this->rule_min(1)]],
        ];
        return $this;
    }

}